{% extends "base.html" %}
{% block title %} Wyszukiwanie lokali {% endblock %}
{% block content %} 

	<h1> Znalezione reklamy lokali dla miasta {{ city }} i ulicy {{ street }}:  </h1>
	
	{% for ad in adverts %}
	
	<h2><a href="/advertisements/{{ ad.id }}">{{ ad.city }} , {{ ad.street }}{% if ad.house_number %} {{ ad.house_number }} {% endif %}</a></h2>
	<p> {{ ad.description|slice:":50"}} {% if ad.description|length > 50 %}...{%endif%}</p> 
	<br/>
     
	{% endfor %}

{% endblock %}
